package com.sbl.bajw.common.web;

public class MessageException extends Exception{
	
	private static final long serialVersionUID = 1L;
	
	String errorCode;
	String message;
	
	public MessageException(String message)
	{
		setMessage(message);
	}
	
	public MessageException(String message,String code)
	{
		setMessage(message);
		setErrorCode(code);
	}
	
	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
